CXX=g++
CXXFLAGS= -std=c++14
PRO_ROOT=$(shell pwd)
GTEST_INCLUDE = -I$(PRO_ROOT)/gtest
GTEST_LIB=$(PRO_ROOT)/lib

TARGET=hello_test


OBJ=hello_test.o

.PHONEY:all

all:$(TARGET)

$(TARGET):$(OBJ)
	$(CXX) $(CXXFLAGS) $(OBJ) -L$(GTEST_LIB) -lgtest -lgtest_main -lpthread -o $(TARGET)
$(OBJ):hello_test.cpp
	$(CXX) $(CXXFLAGS) $(GTEST_INCLUDE) -c hello_test.cpp -o $(OBJ)

.PHONEY:clean
clean:
	rm -rf $(TARGET) $(OBJ)
